Disallow scalar conversation for non-0D arrays#2223
Conversation
|
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞 |
|
Array API standard conformance tests for dpctl=0.22.0dev0=py310h93fe807_103 ran successfully. |
|
Array API standard conformance tests for dpctl=0.22.0dev0=py310h93fe807_108 ran successfully. |
ndgrigorian
left a comment
There was a problem hiding this comment.
aside from minor comments this LGTM
|
Array API standard conformance tests for dpctl=0.22.0dev0=py310h93fe807_109 ran successfully. |
|
Array API standard conformance tests for dpctl=0.22.0dev0=py310h93fe807_110 ran successfully. |
This PR is aimed to unblock the CI and to temporary mute tests failing with numpy 2.4. The changes needs to be reverted once [dpctl-2223](IntelPython/dpctl#2223) is merged and dpnp tests will be updated appropriately.
This PR is aimed to unblock the CI and to temporary mute tests failing with numpy 2.4. The changes needs to be reverted once [dpctl-2223](IntelPython/dpctl#2223) is merged and dpnp tests will be updated appropriately. 36dde9e
ndgrigorian
left a comment
There was a problem hiding this comment.
LGTM! Thanks @vlad-perevezentsev
This PR updates dpnp tests for non-0D scalar conversion behavior changes in [dpctl-2223](IntelPython/dpctl#2223) - allowing scalar conversion only for 0D `usm_ndarray`
This PR updates dpnp tests for non-0D scalar conversion behavior changes in [dpctl-2223](IntelPython/dpctl#2223) - allowing scalar conversion only for 0D `usm_ndarray` 8c56923
This PR aligns
usm_ndarrayscalar conversion semantics with the Python Array API by allowing scalar conversion only for 0D usm_ndarraysConversions to Python numeric scalars via
int,float,complex,bool, and their corresponding methods (__int__,_float__,__complex__, bool) now raiseTypeErrorwhen applied to usm_ndarrays withndim !=0`